package com.oo.inherit_3.automobile;

/**
 * Bus--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 13:53
 **/
public class Bus {

    private String licensNo;

    private String color;

    private String name;

    private double dailyRent;

    public Bus() {
    }

    public Bus(String licensNo, String color, String name, double dailyRent) {
        this.licensNo = licensNo;
        this.color = color;
        this.name = name;
        this.dailyRent = dailyRent;
    }

    protected void hire(String name, int day) {
        System.out.println(name+"租赁汽车"+day+"天");
    }

    public String getLicensNo() {
        return licensNo;
    }

    public void setLicensNo(String licensNo) {
        this.licensNo = licensNo;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getDailyRent() {
        return dailyRent;
    }

    public void setDailyRent(double dailyRent) {
        this.dailyRent = dailyRent;
    }
}
